package com.xbongbong.saas.enums;/*/*/

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * 工单类型
 * @author 魏荣杰
 * @date 2019/5/1 17:14
 * @since v1.0
 * @version v1.0
 */
@Getter
public enum  WorkOrderTypeEnum {
    /**
     *
     */
    NORMAL(0, "enum.workOrderType.name.normal"),
    ROB(1, "enum.workOrderType.name.rob"),
    ;

    private Integer code;

    private String name;

    WorkOrderTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
